<!DOCTYPE html>

<html lang="${lang}">
<head>
    <title>#{get 'title' /}</title>
    <meta charset="${_response_encoding}" />
    <link rel="stylesheet" media="screen" href="@{'/public/stylesheets/crud.css'}" />
    <link href="@{'/public/stylesheets/flexible-grids.css'}" rel="stylesheet" type="text/css"/>
</head>
<body id="crud">
    <div id="crudHeader">
        #{secure.check 'admin'}
        <h1><a href="/admin">&{'crud.title'}</a><a href="@{Application.index()}"> - Index</a></h1>
        #{/secure.check}
        <p style="color: #a2ff0e;">&{session.get('username')}<p>

    </div>

    #{if flash.success}
        <div class="crudFlash flashSuccess">
        ${flash.success}
        </div>
    #{/if}
    #{if flash.error || error}
        <div class="crudFlash flashError">
        ${error ?: flash.error}
        </div>
    #{/if}

    <div id="crudContent">
        #{doLayout /}
    </div>



</body>
</html>
